﻿using System;
using System.Diagnostics.Contracts;
using System.Threading;
using eXamineBusiness.SystemDescription.Data;
using eXamineBusiness.SystemDescription.Events;
using eXamineBusiness.SystemDescription.Exceptions;

namespace eXamineBusiness.SystemDescription
{
    public class Connection : DescriptionItem
    {
        private bool _twoway;

        public Connection(String name, Description source, Description target) : base(name)
        {
            this.Source = source;
            this.Target = target;
            this._twoway = false;
        }

        #region Properties
        public Description Source { get; set; }
        public Description Target { get; set; }
        public bool TwoWay
        {
            get { return this._twoway; }
            set
            {
                this._twoway = value;
            }
        }
        #endregion

        
    }
}
